package com.wpen.unit.web.filter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Mvc请求入口配置
 * 
 * @author Wang Peng
 * @date 2022-12-06
 */
@Configuration
public class InterceptorConfig implements WebMvcConfigurer {
	@Autowired
	private AbstractInterceptor logMessageInterceptor;

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(logMessageInterceptor).addPathPatterns("/**");
	}

}
